/*
 * Copyright 2017 ~ 2025 the original author or authors. James Wong <jameswong1376@gmail.com>>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.wl4g.infra.metrics.health.timed;

/**
 * {@link TimedStat}
 * 
 * @author James Wong &lt;jameswong1376@gmail.com&gt;
 * @version 2020-07-12
 * @since v3.0.0
 */
@Deprecated
public class TimedStat {
    private String metricsName;
    private long max;
    private long min;
    private long avg;
    private int samples;
    private long latest;

    public TimedStat() {
        super();
    }

    public TimedStat(int samples, String metricsName, long max, long min, long avg, long latest) {
        super();
        this.samples = samples;
        this.metricsName = metricsName;
        this.max = max;
        this.min = min;
        this.avg = avg;
        this.latest = latest;
    }

    public TimedStat(String metricsName, long max) {
        super();
        this.metricsName = metricsName;
        this.max = max;
    }

    public String getMetricsName() {
        return metricsName;
    }

    public void setMetricsName(String metricsName) {
        this.metricsName = metricsName;
    }

    public long getMax() {
        return max;
    }

    public void setMax(long max) {
        this.max = max;
    }

    public long getMin() {
        return min;
    }

    public void setMin(long min) {
        this.min = min;
    }

    public long getAvg() {
        return avg;
    }

    public void setAvg(long avg) {
        this.avg = avg;
    }

    public int getSamples() {
        return samples;
    }

    public void setSamples(int samples) {
        this.samples = samples;
    }

    public long getLatest() {
        return latest;
    }

    public void setLatest(long latest) {
        this.latest = latest;
    }

}
